//
//  CustomMessageBaseCell.h
//  FFMall
//
//  Created by ale tan on 2017/9/26.
//  Copyright © 2017年 IT.Bear. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JMUIChatModel.h"
#import "UIResponder+Router.h"

#define HeaderWidth                    40  //头像宽度
#define HeaderHeight                   HeaderWidth //头像高度
#define TopEdge                      16  //气泡离父视图顶部距离
#define BottomEdge                       TopEdge //气泡离父视图底部距离
#define HeaderToEdge                10 //头像距离父视图的边距
#define ContentToEdge               32 //内容距离父视图的边距

#define HeaderToBubble              5 //头像和气泡水平距离
#define ContentToBubbleHead         15//内容和气泡尖尖一端的距离
#define ContentToBubble             5//内容和气泡末端的距离

#define ProductCellHeight             (75+18)//内容和气泡末端的距离

#define kReuseIDSeparate               (@"-") //可重用ID字符串区分符号

#define kImageNameChat_send_nor        (@"ff_chat_sender_bg")
#define kImageNameChat_send_press      (@"ff_chat_sender_bg")
#define kImageNameChat_send_image      (@"ff_chat_sender_image_bubble")//图片中空

#define kImageNameChat_Recieve_nor     (@"ff_chat_receiver_bg")
#define kImageNameChat_Recieve_press   (@"ff_chat_receiver_bg")
#define kImageNameChat_Recieve_image   (@"ff_chat_receiver_image_bubble")//图片中空

@interface CustomMessageBaseCell : UITableViewCell
{
@protected
    
    /**
     *  @brief  头像
     */
    UIImageView *headerView;
    
    /**
     *  @brief  气泡
     */
    UIImageView *bubbleImageView;
    
    /**
     *  @brief  本消息是否是本人发送的？
     */
    BOOL isReceived;
}


/**
 *  @brief  聊天消息中单条消息模型
 */
@property(nonatomic,strong) JMUIChatModel *model;

/**
 *  控制器
 */
@property(nonatomic,weak) UIViewController *viewController;


/**
 *  @brief  气泡被长按后通知，子类必须实现此方法
 *
 *  @param Press 长按手势
 */
-(void)longPress:(UILongPressGestureRecognizer *)Press;

@end
